from decimal import Decimal
import decimal

def sqr(x):
    type_parameter = type(x).__name__
    res = ''
    try:
        if type_parameter == 'int':
            res = x ** 2
        elif type_parameter == 'float':
            res = Decimal(x) * Decimal(x)
        elif type_parameter == 'list':
            res = []
            for i in x:
                res.append(i ** 2)
    except Exception as e:
        print('请检查参数！')
        res = ''
    return res